@echo off

set "lj=%~p0"
set "lj=%lj:\= %"
for %%a in (%lj%) do set wjj=%%a

set targetDir="..\_________________________GIT_BAK\%wjj%"
rd /s/q %targetDir%
md %targetDir%
start /wait ______Keil_Clear.bat
::*************************************************** backup
for %%a in (%cd:\= %) do set a=%%~nxa
xcopy/e/h/r/y "%cd%" "%targetDir%"
::*************************************************** del backup.git
rd /s/q "%targetDir%\.git"
::***************************************************



pause